package com.kwedding.util;

import java.util.List;
import com.github.pagehelper.PageInfo;

public class CopyPageInfo {

	/**
	 * 复制数据
	 * 
	 * @param data
	 * @return
	 */
	public static <T> Resp_PageInfo<T> copyPageInfo(List data, List<T> responseData) {
		PageInfo pageInfo = new PageInfo(data, 10);
		Resp_PageInfo<T> resp_PageInfo = CopyerObject.copyerObject(pageInfo, Resp_PageInfo.class);
		resp_PageInfo.setListData(responseData);
		return resp_PageInfo;
	}
}
